package com.meego.common.config;

public class ConfigException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3081884420351548025L;
	String mKey;
	String mValue;

	public ConfigException(String msg, String aKey, String aValue) {
		super(new StringBuilder().append(msg).append(" ").append(aKey).append(":").append(aValue = aValue != null ? aValue : "<null>").toString());
		this.mKey = aKey;
		this.mValue = aValue;
	}

	public ConfigException(String msg, String aKey) {
		this(msg, aKey, null);
	}

	public String getKey(){
		return this.mKey;
	}

	public String getValue() {
		return this.mValue;
	}
}